package com.cyd.demo3.controller;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @Description : 描述
 * Created by cyd on 2021-05-13 12:05:23
 */
@WebServlet(name = "fiveServlet", value = "/five")
public class FiveServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        System.out.println("five: 割包皮");
        String outPutByFour = (String) req.getServletContext().getAttribute("outPutByFour");
        
        PrintWriter out = resp.getWriter();
        out.print(outPutByFour);
        out.print("<h2>five: 割包皮</h2>");
    }
}
